package com.blkj.iam.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 角色和菜单关联表
 */
@TableName("sys_role_menu")
@Data
public class RoleMenu {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 角色ID
     */
    private Long roleId;

    /**
     * 菜单ID
     */
    private Long menuId;

    /**
     * 租户ID
     */
    private Long tenantId;

    public RoleMenu() {
    }

    public RoleMenu(Long roleId, Long menuId, Long tenantId) {
        this.roleId = roleId;
        this.menuId = menuId;
        this.tenantId = tenantId;
    }
}